

package com.coding4play.mqtt.common.entity.session;


import io.netty.handler.codec.mqtt.MqttPublishMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 会话存储
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChannelSession implements Serializable {
    private static final long serialVersionUID = -1L;

    private String brokerId;

    private String clientId;

    private String channelId;

    private Integer expire;

    private Boolean cleanSession;

    private MqttPublishMessage willMessage;
}
